
module Interval

	class Event
		@timestamp = nil
		@key = nil
		@data = nil

		def initialize key, timestamp, data=nil
			raise ArgumentError if @key.nil?
			raise ArgumentError if @timestamp.nil?
			raise ArgumentError unless @timestamp.kind_of? DateTime

			@key = key
			@data = data
			@timestamp = timestamp
		end
	end
end
